package com.jason.accountmd;


import com.alibaba.cloud.seata.GlobalTransactionAutoConfiguration;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@MapperScan("com.jason.accountmd.mapper")
@EnableTransactionManagement
@SpringBootApplication(
        exclude ={
                //SeataAutoConfiguration.class,//sprig alibaba 2.2以上开启shardingshpere，则这里要注释
                GlobalTransactionAutoConfiguration.class//spring alibaba 2.1
                //DataSourceAutoConfiguration.class

        })
@EnableDiscoveryClient
@EnableDubbo
public class AccountServiceStarter {
    public static void main(String[] args) {
        SpringApplication.run(AccountServiceStarter.class);
    }
}
